home *** CD-ROM | disk | FTP | other *** search
-
- SENDMAIL - a simple mail delivering interface
- ---------------------------------------------
-
-
-
- *************
- Copyright
-
- Sendmail's copyright is by Thomas Aeby
- You may freely distribute sendmail - DO IT!
-
-
-
- *************
- What is sendmail?
-
- Sendmail is a tiny little program that serves as an interface between
- mailers and low level mail delivering programs. It's task is to read mail
- passed by another program and apply one of the existing mail delivering
- methods depending on the message's destination address. Sendmail is not
- intended to be invoked directly by the user - this is the task of mailers -
- but can be used this way of course.
-
-
-
- *************
- Why should we use sendmail on Archimedes?
-
- I am tired with things like
- - use one mailer for !UUCP, another for !TCPIP, ...
- - reinvent wheel each time I write a program that should automatically send
- messages
- Until now every one who wrote a mailer (such as ArcBM for instance) or a
- mail delivery system (such as !RUCP or !TCPIP) put the corresponding method
- passing mail from the user to the mail delivery system into the mailer. So
- we have now a lot of great mailers but none of it is compatible with all the
- mail delivery systems. And have you ever tried to use UUCP and TCPIP on the
- same machine? With sendmail you can send your mail without knowing which
- system is actually used for delivery. As soon as every mail system uses
- sendmail they are all compatible!
-
-
- *************
- How to use sendmail
-
- The syntax used to invoke sendmail is
-
- sendmail [-f file] [-C file] [address1] [address2] ...
-
- When called sendmail reads one message from stdin (from a file passed with
- -f option resp.). This message MUST contain a valid mail header. Then
- sendmail searches for the destination addresses. If one or more address is
- given on the command line then mail is sent to this/these addresse(s). If
- not the addresse(s) are extracted from the To: line in the mail header. Each
- of the addresses is looked up in sendmail's configuration file and the
- corresponding mail delivery methods are called.
-
- Sendmail expects it's configuration file to be
- - the file passed with the -C option ('override configuration file')
- - the file indicated with the environment variable sendmail$config
- - the file 'mailer' in the current directory
-
-
- *************
- The configuration file (see also the sample configuration file)
-
- Each line of the configuration file contains (from left to right)
-
- 1. a (wildcarded) mail address
- 2. a space
- 2. the method (command) that delivers messages to this address
-
- wildcards are '*' and '?'. '?' matches exactly one character, '*' zero
- or more characters.
-
- The command may contain % expressions. They are replaced by sendmail by
- different strings:
-
- %f name of the file containing the message (with headers)
- %t destination address (as given on sendmails command line
- or extracted from the message header)
- %<digit> string that is matched by the corresponding '*' or '?'
- wildcard. If the wildcarded mail address is *@*.ch and the actual
- address is root@nic.switch.ch then %0 is replaced by 'root'
- and %1 by 'nic.switch'
-
- sendmail is CASE SENSITIVE
-
- Sample:
-
- the configuration file contains the line
- *@*.UUCP uux < %f - master!rmail %0@%1
- then sendmail is invoked as
- sendmail postmaster@sub.master.UUCP
- and the message entered at the console
- To: postmaster@sub.master.UUCP
- From: aeby@dial.eunet.ch
- Subject: test sendmail
-
- test
- ^D
- sendmail reads the console input into a temporary file - let's call it TMP000
- sendmail then does find out that 'postmaster@sub.master.UUCP' does match
- *@*.UUCP and therefore does invoke the corresponding method, means
- uux < TMP000 - rmail postmaster@sub.master
- The mail is delivered by UUCP - Voila
-
-
-
-
- *************
- mail delivery systems provided
-
- Until now there are 2 mail delivery programs supplied
-
- 1. smtpqueue (smtpqueue address origin-address)
- for !TCPIP mail delivery
- 2. putmail (putmail username)
- for !BM compatible mail delivery
-
- Many mail systems have their own low level methods already included - take
- UUCP for instance: here mail is sent by UUX
-
-
-
- *************
- sendmail and rmail
-
- I use on my system
-
- Set alias$rmail "sendmail "
-
-
-
-
-
- Thomas Aeby
- Graeffet 406
- 1735 Giffers
- Switzerland
- +41 37 38 16 00
- Internet: aeby@dial.eunet.ch
- Fidonet : Thomas Aeby, 2:301/811.49@fidonet.org
-